﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AspSessionInfo
{
    public partial class SessionInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ButtonInfo_Click(object sender, EventArgs e)
        {
            string[] parsedLines = TextBox.Text.Split('\n');

            foreach (string line in parsedLines)
            {
                Session["input"] += line + "<br />";
            }
        
            LabelInfo.Text = Session["input"].ToString();

        }

        protected void TextBox_TextChanged(object sender, EventArgs e)
        {

        }
    }
}